//快递员分配
import request from '@/utils/request'

//查询网点的快递员
export function PostAllocationList(userid) {
  return request({
    url: `pd-base/allocation/initialization/${ userid }`,
    method: 'GET',
    params: { userid }
  })
}
//查询快递员范围
export function AllocationRangeList(userid) {
  return request({
    url: `/pd-base/allocation/Range/${ userid }`,
    method: 'GET',
    params: { userid }
  })
}
//查询网点范围
export function agencyByOrgId(org_id) {
  return request({
    url: `/pd-base/allocation/gency/${ org_id }`,
    method: 'GET',
    params: { org_id }
  })
}
//添加快递员范围
export function AddallocationRange(data) {
  return request({
    url: `/pd-base/allocation/AddallocationRange`,
    method: 'POST',
    data: data
  })
}
